.class public Les/wb;
.super Ljava/lang/Object;
.source "ShareDialog.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Les/wb$c;,
        Les/wb$b;,
        Les/wb$e;,
        Les/wb$d;
    }
.end annotation


# instance fields
.field private a:Landroid/content/Context;

.field private b:I

.field private c:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private d:Les/wb$c;

.field private e:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Les/zb;",
            ">;"
        }
    .end annotation
.end field

.field private f:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Les/zb;",
            ">;"
        }
    .end annotation
.end field

.field private g:Les/wb$d;

.field private h:F

.field private i:Z

.field private j:Z

.field private k:Lcom/esfile/screen/recorder/provider/entity/b;

.field private l:Lcom/esfile/screen/recorder/ui/a;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Les/wb;->j:Z

    .line 3
    iput-object p1, p0, Les/wb;->a:Landroid/content/Context;

    return-void
.end method

.method static synthetic a(Les/wb;)Ljava/util/List;
    .locals 0

    .line 1
    iget-object p0, p0, Les/wb;->e:Ljava/util/List;

    return-object p0
.end method

.method private a(Landroid/view/View;)V
    .locals 3
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "ClickableViewAccessibility"
        }
    .end annotation

    .line 11
    invoke-direct {p0, p1}, Les/wb;->b(Landroid/view/View;)V

    .line 12
    sget v0, Les/x4;->durec_share_list_recycle_view:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroidx/recyclerview/widget/RecyclerView;

    .line 13
    new-instance v0, Landroidx/recyclerview/widget/GridLayoutManager;

    iget-object v1, p0, Les/wb;->a:Landroid/content/Context;

    const/4 v2, 0x4

    invoke-direct {v0, v1, v2}, Landroidx/recyclerview/widget/GridLayoutManager;-><init>(Landroid/content/Context;I)V

    invoke-virtual {p1, v0}, Landroidx/recyclerview/widget/RecyclerView;->setLayoutManager(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)V

    .line 14
    new-instance v0, Les/wb$b;

    iget-object v1, p0, Les/wb;->a:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    sget v2, Les/v4;->durec_share_item_margin_bottom:I

    .line 15
    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I

    move-result v1

    invoke-direct {v0, p0, v1}, Les/wb$b;-><init>(Les/wb;I)V

    .line 16
    invoke-virtual {p1, v0}, Landroidx/recyclerview/widget/RecyclerView;->addItemDecoration(Landroidx/recyclerview/widget/RecyclerView$ItemDecoration;)V

    .line 17
    new-instance v0, Les/ub;

    invoke-direct {v0, p0}, Les/ub;-><init>(Les/wb;)V

    invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    .line 18
    new-instance v0, Les/wb$d;

    const/4 v1, 0x0

    invoke-direct {v0, p0, v1}, Les/wb$d;-><init>(Les/wb;Les/wb$a;)V

    iput-object v0, p0, Les/wb;->g:Les/wb$d;

    .line 19
    invoke-virtual {p1, v0}, Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V

    return-void
.end method

.method private a(Ljava/lang/String;Les/zb;J[J)V
    .locals 1

    if-eqz p2, :cond_1

    .line 30
    iget-object p2, p2, Les/zb;->a:Ljava/lang/String;

    const-string v0, "com.google.android.youtube"

    invoke-virtual {v0, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p2

    if-nez p2, :cond_0

    goto :goto_0

    .line 31
    :cond_0
    new-instance p2, Landroid/content/Intent;

    const-string v0, "action_share_promoted_video_to_ytb"

    invoke-direct {p2, v0}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    const-string v0, "path"

    .line 32
    invoke-virtual {p2, v0, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string p1, "ad_set_id"

    .line 33
    invoke-virtual {p2, p1, p3, p4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;J)Landroid/content/Intent;

    const-string p1, "ad_id"

    .line 34
    invoke-virtual {p2, p1, p5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;[J)Landroid/content/Intent;

    .line 35
    iget-object p1, p0, Les/wb;->a:Landroid/content/Context;

    invoke-static {p1}, Landroidx/localbroadcastmanager/content/LocalBroadcastManager;->getInstance(Landroid/content/Context;)Landroidx/localbroadcastmanager/content/LocalBroadcastManager;

    move-result-object p1

    invoke-virtual {p1, p2}, Landroidx/localbroadcastmanager/content/LocalBroadcastManager;->sendBroadcast(Landroid/content/Intent;)Z

    :cond_1
    :goto_0
    return-void
.end method

.method static synthetic a(Les/wb;Les/zb;)Z
    .locals 0

    .line 2
    invoke-direct {p0, p1}, Les/wb;->a(Les/zb;)Z

    move-result p0

    return p0
.end method

.method private a(Les/zb;)Z
    .locals 0

    if-nez p1, :cond_0

    const/4 p1, 0x0

    return p1

    .line 29
    :cond_0
    iget-boolean p1, p1, Les/zb;->h:Z

    return p1
.end method

.method static synthetic b(Les/wb;)Landroid/content/Context;
    .locals 0

    .line 1
    iget-object p0, p0, Les/wb;->a:Landroid/content/Context;

    return-object p0
.end method

.method private b(Landroid/view/View;)V
    .locals 0

    return-void
.end method

.method static synthetic b(Les/wb;Les/zb;)V
    .locals 0

    .line 2
    invoke-direct {p0, p1}, Les/wb;->b(Les/zb;)V

    return-void
.end method

.method private b(Les/zb;)V
    .locals 7

    .line 5
    iget v0, p0, Les/wb;->b:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_0

    .line 6
    iget-object v0, p0, Les/wb;->a:Landroid/content/Context;

    iget-object v1, p0, Les/wb;->c:Ljava/util/List;

    invoke-static {v0, p1, v1}, Les/ac;->a(Landroid/content/Context;Les/zb;Ljava/util/List;)V

    .line 7
    iget-object v0, p0, Les/wb;->c:Ljava/util/List;

    invoke-static {v0}, Les/ac;->a(Ljava/util/List;)Ljava/lang/String;

    move-result-object v0

    .line 8
    iget-object v1, p0, Les/wb;->a:Landroid/content/Context;

    invoke-static {v1}, Les/vb;->a(Landroid/content/Context;)Les/vb;

    move-result-object v1

    iget-object v2, p1, Les/zb;->b:Ljava/lang/String;

    iget v3, p0, Les/wb;->b:I

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    invoke-virtual {v1, v2, v3, v4, v5}, Les/vb;->a(Ljava/lang/String;IJ)V

    goto/16 :goto_2

    :cond_0
    const/4 v1, 0x4

    if-ne v0, v1, :cond_1

    .line 9
    iget-object v0, p0, Les/wb;->a:Landroid/content/Context;

    iget-object v1, p0, Les/wb;->c:Ljava/util/List;

    invoke-static {v0, p1, v1}, Les/ac;->a(Landroid/content/Context;Les/zb;Ljava/util/List;)V

    .line 10
    iget-object v0, p0, Les/wb;->a:Landroid/content/Context;

    invoke-static {v0}, Les/vb;->a(Landroid/content/Context;)Les/vb;

    move-result-object v0

    iget-object v1, p1, Les/zb;->b:Ljava/lang/String;

    iget v2, p0, Les/wb;->b:I

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v3

    invoke-virtual {v0, v1, v2, v3, v4}, Les/vb;->a(Ljava/lang/String;IJ)V

    goto/16 :goto_1

    :cond_1
    const/4 v1, 0x0

    if-nez v0, :cond_4

    .line 11
    iget-object v0, p0, Les/wb;->k:Lcom/esfile/screen/recorder/provider/entity/b;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/provider/entity/b;->g()Z

    move-result v0

    if-eqz v0, :cond_2

    .line 12
    iget-object v0, p0, Les/wb;->a:Landroid/content/Context;

    iget-object v2, p0, Les/wb;->c:Ljava/util/List;

    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    iget-object v3, p0, Les/wb;->k:Lcom/esfile/screen/recorder/provider/entity/b;

    invoke-virtual {v3}, Lcom/esfile/screen/recorder/provider/entity/b;->a()Ljava/lang/String;

    move-result-object v3

    invoke-static {v0, p1, v2, v3}, Les/ac;->a(Landroid/content/Context;Les/zb;Ljava/lang/String;Ljava/lang/String;)V

    .line 13
    iget-object v0, p0, Les/wb;->c:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    move-object v2, v0

    check-cast v2, Ljava/lang/String;

    iget-object v0, p0, Les/wb;->k:Lcom/esfile/screen/recorder/provider/entity/b;

    .line 14
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/provider/entity/b;->c()J

    move-result-wide v4

    iget-object v0, p0, Les/wb;->k:Lcom/esfile/screen/recorder/provider/entity/b;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/provider/entity/b;->b()[J

    move-result-object v6

    move-object v1, p0

    move-object v3, p1

    .line 15
    invoke-direct/range {v1 .. v6}, Les/wb;->a(Ljava/lang/String;Les/zb;J[J)V

    goto :goto_0

    .line 16
    :cond_2
    iget-object v0, p0, Les/wb;->k:Lcom/esfile/screen/recorder/provider/entity/b;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/provider/entity/b;->h()Z

    move-result v0

    if-eqz v0, :cond_3

    .line 17
    iget-object v0, p0, Les/wb;->a:Landroid/content/Context;

    iget-object v2, p0, Les/wb;->c:Ljava/util/List;

    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    iget-object v2, p0, Les/wb;->k:Lcom/esfile/screen/recorder/provider/entity/b;

    invoke-virtual {v2}, Lcom/esfile/screen/recorder/provider/entity/b;->a()Ljava/lang/String;

    move-result-object v2

    invoke-static {v0, p1, v1, v2}, Les/ac;->a(Landroid/content/Context;Les/zb;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 18
    :cond_3
    iget-object v0, p0, Les/wb;->a:Landroid/content/Context;

    iget-object v2, p0, Les/wb;->c:Ljava/util/List;

    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    invoke-static {v0, p1, v1}, Les/ac;->c(Landroid/content/Context;Les/zb;Ljava/lang/String;)V

    .line 19
    :goto_0
    iget-object v0, p0, Les/wb;->c:Ljava/util/List;

    invoke-static {v0}, Les/ac;->a(Ljava/util/List;)Ljava/lang/String;

    move-result-object v0

    .line 20
    iget-object v1, p0, Les/wb;->a:Landroid/content/Context;

    invoke-static {v1}, Les/vb;->a(Landroid/content/Context;)Les/vb;

    move-result-object v1

    iget-object v2, p1, Les/zb;->b:Ljava/lang/String;

    iget v3, p0, Les/wb;->b:I

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    invoke-virtual {v1, v2, v3, v4, v5}, Les/vb;->a(Ljava/lang/String;IJ)V

    goto :goto_2

    :cond_4
    const/4 v2, 0x2

    if-ne v0, v2, :cond_6

    .line 21
    iget-object v0, p0, Les/wb;->c:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 22
    iget-object v1, p0, Les/wb;->d:Les/wb$c;

    if-eqz v1, :cond_5

    .line 23
    iget-object v2, p1, Les/zb;->a:Ljava/lang/String;

    invoke-interface {v1, v0, v2}, Les/wb$c;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    .line 24
    :cond_5
    iget-object v1, p0, Les/wb;->a:Landroid/content/Context;

    invoke-static {v1, p1, v0}, Les/ac;->b(Landroid/content/Context;Les/zb;Ljava/lang/String;)V

    goto :goto_1

    :cond_6
    const/4 v2, 0x3

    if-ne v0, v2, :cond_8

    .line 25
    iget-object v0, p0, Les/wb;->c:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 26
    iget-object v1, p0, Les/wb;->d:Les/wb$c;

    if-eqz v1, :cond_7

    .line 27
    iget-object v2, p1, Les/zb;->a:Ljava/lang/String;

    invoke-interface {v1, v0, v2}, Les/wb$c;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    .line 28
    :cond_7
    iget-object v1, p0, Les/wb;->a:Landroid/content/Context;

    invoke-static {v1, p1, v0}, Les/ac;->b(Landroid/content/Context;Les/zb;Ljava/lang/String;)V

    .line 29
    iget-object v0, p0, Les/wb;->a:Landroid/content/Context;

    invoke-static {v0}, Les/vb;->a(Landroid/content/Context;)Les/vb;

    move-result-object v0

    iget-object v1, p1, Les/zb;->b:Ljava/lang/String;

    iget v2, p0, Les/wb;->b:I

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v3

    invoke-virtual {v0, v1, v2, v3, v4}, Les/vb;->a(Ljava/lang/String;IJ)V

    :cond_8
    :goto_1
    const/4 v0, 0x0

    .line 30
    :goto_2
    iget-object v1, p0, Les/wb;->d:Les/wb$c;

    if-eqz v1, :cond_9

    .line 31
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v3, p1, Les/zb;->a:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v3, "#"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v3, p1, Les/zb;->b:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    iget-object p1, p1, Les/zb;->a:Ljava/lang/String;

    invoke-interface {v1, v2, v0, p1}, Les/wb$c;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 32
    :cond_9
    iget-object p1, p0, Les/wb;->l:Lcom/esfile/screen/recorder/ui/a;

    if-eqz p1, :cond_a

    .line 33
    invoke-virtual {p1}, Landroid/app/Dialog;->dismiss()V

    :cond_a
    return-void
.end method

.method private c()V
    .locals 3

    .line 2
    iget-boolean v0, p0, Les/wb;->j:Z

    if-nez v0, :cond_1

    iget-object v0, p0, Les/wb;->e:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    const/16 v1, 0x8

    if-le v0, v1, :cond_1

    const/4 v0, 0x7

    .line 3
    :goto_0
    iget-object v1, p0, Les/wb;->e:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-ge v0, v1, :cond_0

    .line 4
    iget-object v1, p0, Les/wb;->f:Ljava/util/List;

    iget-object v2, p0, Les/wb;->e:Ljava/util/List;

    invoke-interface {v2, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    invoke-interface {v1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 5
    :cond_0
    iget-object v0, p0, Les/wb;->e:Ljava/util/List;

    iget-object v1, p0, Les/wb;->f:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->removeAll(Ljava/util/Collection;)Z

    .line 6
    new-instance v0, Les/zb;

    invoke-direct {v0}, Les/zb;-><init>()V

    const/4 v1, 0x1

    .line 7
    iput-boolean v1, v0, Les/zb;->h:Z

    .line 8
    iget-object v1, p0, Les/wb;->a:Landroid/content/Context;

    sget v2, Les/z4;->durec_feed_video_more:I

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Les/zb;->c:Ljava/lang/String;

    .line 9
    iget-object v1, p0, Les/wb;->a:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    sget v2, Les/w4;->durec_share_dialog_item_more_selector:I

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    iput-object v1, v0, Les/zb;->e:Landroid/graphics/drawable/Drawable;

    .line 10
    iget-object v1, p0, Les/wb;->e:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_1
    return-void
.end method

.method static synthetic c(Les/wb;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Les/wb;->k()V

    return-void
.end method

.method private d()V
    .locals 2

    .line 1
    iget v0, p0, Les/wb;->b:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_0

    .line 2
    invoke-direct {p0}, Les/wb;->g()V

    goto :goto_0

    :cond_0
    if-nez v0, :cond_1

    .line 3
    invoke-direct {p0}, Les/wb;->i()V

    goto :goto_0

    :cond_1
    const/4 v1, 0x2

    if-ne v0, v1, :cond_2

    .line 4
    invoke-direct {p0}, Les/wb;->e()V

    goto :goto_0

    :cond_2
    const/4 v1, 0x3

    if-ne v0, v1, :cond_3

    .line 5
    invoke-direct {p0}, Les/wb;->h()V

    goto :goto_0

    :cond_3
    const/4 v1, 0x4

    if-ne v0, v1, :cond_4

    .line 6
    invoke-direct {p0}, Les/wb;->f()V

    :cond_4
    :goto_0
    return-void
.end method

.method public static synthetic d(Les/wb;)V
    .locals 0

    invoke-direct {p0}, Les/wb;->j()V

    return-void
.end method

.method private e()V
    .locals 6

    .line 1
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.SEND"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    const-string v1, "android.intent.category.DEFAULT"

    .line 2
    invoke-virtual {v0, v1}, Landroid/content/Intent;->addCategory(Ljava/lang/String;)Landroid/content/Intent;

    const-string v1, "text/plain"

    .line 3
    invoke-virtual {v0, v1}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;

    .line 4
    iget-object v1, p0, Les/wb;->a:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v1

    const/4 v2, 0x0

    .line 5
    invoke-virtual {v1, v0, v2}, Landroid/content/pm/PackageManager;->queryIntentActivities(Landroid/content/Intent;I)Ljava/util/List;

    move-result-object v0

    .line 6
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    iput-object v2, p0, Les/wb;->e:Ljava/util/List;

    .line 7
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    iput-object v2, p0, Les/wb;->f:Ljava/util/List;

    .line 8
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_0
    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_1

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Landroid/content/pm/ResolveInfo;

    .line 9
    iget-object v3, v2, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;

    iget-object v3, v3, Landroid/content/pm/ActivityInfo;->packageName:Ljava/lang/String;

    const-string v4, "com.facebook.katana"

    .line 10
    invoke-static {v3, v4}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result v4

    if-nez v4, :cond_0

    const-string v4, "com.twitter.android"

    .line 11
    invoke-static {v3, v4}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result v4

    if-nez v4, :cond_0

    const-string v4, "com.whatsapp"

    .line 12
    invoke-static {v3, v4}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result v4

    if-nez v4, :cond_0

    .line 13
    new-instance v4, Les/zb;

    invoke-direct {v4}, Les/zb;-><init>()V

    .line 14
    iput-object v3, v4, Les/zb;->a:Ljava/lang/String;

    .line 15
    iget-object v5, v2, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;

    iget-object v5, v5, Landroid/content/pm/ActivityInfo;->name:Ljava/lang/String;

    iput-object v5, v4, Les/zb;->b:Ljava/lang/String;

    .line 16
    invoke-virtual {v2, v1}, Landroid/content/pm/ResolveInfo;->loadLabel(Landroid/content/pm/PackageManager;)Ljava/lang/CharSequence;

    move-result-object v5

    invoke-interface {v5}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v5

    iput-object v5, v4, Les/zb;->c:Ljava/lang/String;

    .line 17
    iget-object v5, p0, Les/wb;->a:Landroid/content/Context;

    invoke-static {v5, v3}, Lcom/esfile/screen/recorder/utils/PackageUtils;->a(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, v4, Les/zb;->d:Ljava/lang/String;

    .line 18
    invoke-virtual {v2, v1}, Landroid/content/pm/ResolveInfo;->loadIcon(Landroid/content/pm/PackageManager;)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    iput-object v2, v4, Les/zb;->e:Landroid/graphics/drawable/Drawable;

    .line 19
    iget-object v2, p0, Les/wb;->e:Ljava/util/List;

    invoke-interface {v2, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 20
    :cond_1
    invoke-direct {p0}, Les/wb;->c()V

    return-void
.end method

.method private f()V
    .locals 6

    .line 1
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.SEND"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    const-string v1, "android.intent.category.DEFAULT"

    .line 2
    invoke-virtual {v0, v1}, Landroid/content/Intent;->addCategory(Ljava/lang/String;)Landroid/content/Intent;

    const-string v1, "image/gif"

    .line 3
    invoke-virtual {v0, v1}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;

    .line 4
    iget-object v1, p0, Les/wb;->a:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v1

    const/4 v2, 0x0

    .line 5
    invoke-virtual {v1, v0, v2}, Landroid/content/pm/PackageManager;->queryIntentActivities(Landroid/content/Intent;I)Ljava/util/List;

    move-result-object v0

    .line 6
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    iput-object v2, p0, Les/wb;->e:Ljava/util/List;

    .line 7
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    iput-object v2, p0, Les/wb;->f:Ljava/util/List;

    .line 8
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_0

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Landroid/content/pm/ResolveInfo;

    .line 9
    new-instance v3, Les/zb;

    invoke-direct {v3}, Les/zb;-><init>()V

    .line 10
    iget-object v4, v2, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;

    iget-object v5, v4, Landroid/content/pm/ActivityInfo;->packageName:Ljava/lang/String;

    iput-object v5, v3, Les/zb;->a:Ljava/lang/String;

    .line 11
    iget-object v4, v4, Landroid/content/pm/ActivityInfo;->name:Ljava/lang/String;

    iput-object v4, v3, Les/zb;->b:Ljava/lang/String;

    .line 12
    invoke-virtual {v2, v1}, Landroid/content/pm/ResolveInfo;->loadLabel(Landroid/content/pm/PackageManager;)Ljava/lang/CharSequence;

    move-result-object v4

    invoke-interface {v4}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v4

    iput-object v4, v3, Les/zb;->c:Ljava/lang/String;

    .line 13
    iget-object v4, p0, Les/wb;->a:Landroid/content/Context;

    iget-object v5, v2, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;

    iget-object v5, v5, Landroid/content/pm/ActivityInfo;->packageName:Ljava/lang/String;

    invoke-static {v4, v5}, Lcom/esfile/screen/recorder/utils/PackageUtils;->a(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v3, Les/zb;->d:Ljava/lang/String;

    .line 14
    invoke-virtual {v2, v1}, Landroid/content/pm/ResolveInfo;->loadIcon(Landroid/content/pm/PackageManager;)Landroid/graphics/drawable/Drawable;

    move-result-object v4

    iput-object v4, v3, Les/zb;->e:Landroid/graphics/drawable/Drawable;

    .line 15
    iget-object v4, p0, Les/wb;->a:Landroid/content/Context;

    invoke-static {v4}, Les/vb;->a(Landroid/content/Context;)Les/vb;

    move-result-object v4

    iget-object v2, v2, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;

    iget-object v2, v2, Landroid/content/pm/ActivityInfo;->name:Ljava/lang/String;

    iget v5, p0, Les/wb;->b:I

    invoke-virtual {v4, v2, v5}, Les/vb;->c(Ljava/lang/String;I)J

    move-result-wide v4

    iput-wide v4, v3, Les/zb;->g:J

    .line 16
    iget-object v2, p0, Les/wb;->a:Landroid/content/Context;

    iget-object v4, v3, Les/zb;->a:Ljava/lang/String;

    iget-object v5, v3, Les/zb;->b:Ljava/lang/String;

    invoke-static {v2, v4, v5}, Les/yb;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)I

    move-result v2

    iput v2, v3, Les/zb;->f:I

    .line 17
    iget-object v2, p0, Les/wb;->e:Ljava/util/List;

    invoke-interface {v2, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 18
    :cond_0
    iget-object v0, p0, Les/wb;->e:Ljava/util/List;

    invoke-static {v0}, Ljava/util/Collections;->sort(Ljava/util/List;)V

    .line 19
    invoke-direct {p0}, Les/wb;->c()V

    return-void
.end method

.method private g()V
    .locals 6

    .line 1
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.SEND"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    const-string v1, "android.intent.category.DEFAULT"

    .line 2
    invoke-virtual {v0, v1}, Landroid/content/Intent;->addCategory(Ljava/lang/String;)Landroid/content/Intent;

    const-string v1, "image/*"

    .line 3
    invoke-virtual {v0, v1}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;

    .line 4
    iget-object v1, p0, Les/wb;->a:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v1

    const/4 v2, 0x0

    .line 5
    invoke-virtual {v1, v0, v2}, Landroid/content/pm/PackageManager;->queryIntentActivities(Landroid/content/Intent;I)Ljava/util/List;

    move-result-object v0

    .line 6
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    iput-object v2, p0, Les/wb;->e:Ljava/util/List;

    .line 7
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    iput-object v2, p0, Les/wb;->f:Ljava/util/List;

    .line 8
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_0

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Landroid/content/pm/ResolveInfo;

    .line 9
    new-instance v3, Les/zb;

    invoke-direct {v3}, Les/zb;-><init>()V

    .line 10
    iget-object v4, v2, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;

    iget-object v5, v4, Landroid/content/pm/ActivityInfo;->packageName:Ljava/lang/String;

    iput-object v5, v3, Les/zb;->a:Ljava/lang/String;

    .line 11
    iget-object v4, v4, Landroid/content/pm/ActivityInfo;->name:Ljava/lang/String;

    iput-object v4, v3, Les/zb;->b:Ljava/lang/String;

    .line 12
    invoke-virtual {v2, v1}, Landroid/content/pm/ResolveInfo;->loadLabel(Landroid/content/pm/PackageManager;)Ljava/lang/CharSequence;

    move-result-object v4

    invoke-interface {v4}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v4

    iput-object v4, v3, Les/zb;->c:Ljava/lang/String;

    .line 13
    iget-object v4, p0, Les/wb;->a:Landroid/content/Context;

    iget-object v5, v2, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;

    iget-object v5, v5, Landroid/content/pm/ActivityInfo;->packageName:Ljava/lang/String;

    invoke-static {v4, v5}, Lcom/esfile/screen/recorder/utils/PackageUtils;->a(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v3, Les/zb;->d:Ljava/lang/String;

    .line 14
    invoke-virtual {v2, v1}, Landroid/content/pm/ResolveInfo;->loadIcon(Landroid/content/pm/PackageManager;)Landroid/graphics/drawable/Drawable;

    move-result-object v4

    iput-object v4, v3, Les/zb;->e:Landroid/graphics/drawable/Drawable;

    .line 15
    iget-object v4, p0, Les/wb;->a:Landroid/content/Context;

    invoke-static {v4}, Les/vb;->a(Landroid/content/Context;)Les/vb;

    move-result-object v4

    iget-object v2, v2, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;

    iget-object v2, v2, Landroid/content/pm/ActivityInfo;->name:Ljava/lang/String;

    iget v5, p0, Les/wb;->b:I

    invoke-virtual {v4, v2, v5}, Les/vb;->c(Ljava/lang/String;I)J

    move-result-wide v4

    iput-wide v4, v3, Les/zb;->g:J

    .line 16
    iget-object v2, p0, Les/wb;->a:Landroid/content/Context;

    iget-object v4, v3, Les/zb;->a:Ljava/lang/String;

    iget-object v5, v3, Les/zb;->b:Ljava/lang/String;

    invoke-static {v2, v4, v5}, Les/yb;->b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)I

    move-result v2

    iput v2, v3, Les/zb;->f:I

    .line 17
    iget-object v2, p0, Les/wb;->e:Ljava/util/List;

    invoke-interface {v2, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 18
    :cond_0
    iget-object v0, p0, Les/wb;->e:Ljava/util/List;

    invoke-static {v0}, Ljava/util/Collections;->sort(Ljava/util/List;)V

    .line 19
    invoke-direct {p0}, Les/wb;->c()V

    return-void
.end method

.method private h()V
    .locals 6

    .line 1
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.SEND"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    const-string v1, "android.intent.category.DEFAULT"

    .line 2
    invoke-virtual {v0, v1}, Landroid/content/Intent;->addCategory(Ljava/lang/String;)Landroid/content/Intent;

    const-string v1, "text/plain"

    .line 3
    invoke-virtual {v0, v1}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;

    .line 4
    iget-object v1, p0, Les/wb;->a:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v1

    const/4 v2, 0x0

    .line 5
    invoke-virtual {v1, v0, v2}, Landroid/content/pm/PackageManager;->queryIntentActivities(Landroid/content/Intent;I)Ljava/util/List;

    move-result-object v0

    .line 6
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    iput-object v2, p0, Les/wb;->e:Ljava/util/List;

    .line 7
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    iput-object v2, p0, Les/wb;->f:Ljava/util/List;

    .line 8
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_0

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Landroid/content/pm/ResolveInfo;

    .line 9
    iget-object v3, v2, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;

    iget-object v3, v3, Landroid/content/pm/ActivityInfo;->packageName:Ljava/lang/String;

    .line 10
    new-instance v4, Les/zb;

    invoke-direct {v4}, Les/zb;-><init>()V

    .line 11
    iput-object v3, v4, Les/zb;->a:Ljava/lang/String;

    .line 12
    iget-object v5, v2, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;

    iget-object v5, v5, Landroid/content/pm/ActivityInfo;->name:Ljava/lang/String;

    iput-object v5, v4, Les/zb;->b:Ljava/lang/String;

    .line 13
    invoke-virtual {v2, v1}, Landroid/content/pm/ResolveInfo;->loadLabel(Landroid/content/pm/PackageManager;)Ljava/lang/CharSequence;

    move-result-object v5

    invoke-interface {v5}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v5

    iput-object v5, v4, Les/zb;->c:Ljava/lang/String;

    .line 14
    iget-object v5, p0, Les/wb;->a:Landroid/content/Context;

    invoke-static {v5, v3}, Lcom/esfile/screen/recorder/utils/PackageUtils;->a(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, v4, Les/zb;->d:Ljava/lang/String;

    .line 15
    invoke-virtual {v2, v1}, Landroid/content/pm/ResolveInfo;->loadIcon(Landroid/content/pm/PackageManager;)Landroid/graphics/drawable/Drawable;

    move-result-object v3

    iput-object v3, v4, Les/zb;->e:Landroid/graphics/drawable/Drawable;

    .line 16
    iget-object v3, p0, Les/wb;->a:Landroid/content/Context;

    invoke-static {v3}, Les/vb;->a(Landroid/content/Context;)Les/vb;

    move-result-object v3

    iget-object v2, v2, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;

    iget-object v2, v2, Landroid/content/pm/ActivityInfo;->name:Ljava/lang/String;

    iget v5, p0, Les/wb;->b:I

    invoke-virtual {v3, v2, v5}, Les/vb;->c(Ljava/lang/String;I)J

    move-result-wide v2

    iput-wide v2, v4, Les/zb;->g:J

    .line 17
    iget-object v2, p0, Les/wb;->a:Landroid/content/Context;

    iget-object v3, v4, Les/zb;->a:Ljava/lang/String;

    iget-object v5, v4, Les/zb;->b:Ljava/lang/String;

    invoke-static {v2, v3, v5}, Les/yb;->c(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)I

    move-result v2

    iput v2, v4, Les/zb;->f:I

    .line 18
    iget-object v2, p0, Les/wb;->e:Ljava/util/List;

    invoke-interface {v2, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 19
    :cond_0
    iget-object v0, p0, Les/wb;->e:Ljava/util/List;

    invoke-static {v0}, Ljava/util/Collections;->sort(Ljava/util/List;)V

    .line 20
    invoke-direct {p0}, Les/wb;->c()V

    return-void
.end method

.method private i()V
    .locals 6

    .line 1
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.SEND"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    const-string v1, "android.intent.category.DEFAULT"

    .line 2
    invoke-virtual {v0, v1}, Landroid/content/Intent;->addCategory(Ljava/lang/String;)Landroid/content/Intent;

    const-string v1, "video/*"

    .line 3
    invoke-virtual {v0, v1}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;

    .line 4
    iget-object v1, p0, Les/wb;->a:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v1

    const/4 v2, 0x0

    .line 5
    invoke-virtual {v1, v0, v2}, Landroid/content/pm/PackageManager;->queryIntentActivities(Landroid/content/Intent;I)Ljava/util/List;

    move-result-object v0

    .line 6
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    iput-object v2, p0, Les/wb;->e:Ljava/util/List;

    .line 7
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    iput-object v2, p0, Les/wb;->f:Ljava/util/List;

    .line 8
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_0

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Landroid/content/pm/ResolveInfo;

    .line 9
    new-instance v3, Les/zb;

    invoke-direct {v3}, Les/zb;-><init>()V

    .line 10
    iget-object v4, v2, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;

    iget-object v5, v4, Landroid/content/pm/ActivityInfo;->packageName:Ljava/lang/String;

    iput-object v5, v3, Les/zb;->a:Ljava/lang/String;

    .line 11
    iget-object v4, v4, Landroid/content/pm/ActivityInfo;->name:Ljava/lang/String;

    iput-object v4, v3, Les/zb;->b:Ljava/lang/String;

    .line 12
    invoke-virtual {v2, v1}, Landroid/content/pm/ResolveInfo;->loadLabel(Landroid/content/pm/PackageManager;)Ljava/lang/CharSequence;

    move-result-object v4

    invoke-interface {v4}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v4

    iput-object v4, v3, Les/zb;->c:Ljava/lang/String;

    .line 13
    iget-object v4, p0, Les/wb;->a:Landroid/content/Context;

    iget-object v5, v2, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;

    iget-object v5, v5, Landroid/content/pm/ActivityInfo;->packageName:Ljava/lang/String;

    invoke-static {v4, v5}, Lcom/esfile/screen/recorder/utils/PackageUtils;->a(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v3, Les/zb;->d:Ljava/lang/String;

    .line 14
    invoke-virtual {v2, v1}, Landroid/content/pm/ResolveInfo;->loadIcon(Landroid/content/pm/PackageManager;)Landroid/graphics/drawable/Drawable;

    move-result-object v4

    iput-object v4, v3, Les/zb;->e:Landroid/graphics/drawable/Drawable;

    .line 15
    iget-object v4, p0, Les/wb;->a:Landroid/content/Context;

    invoke-static {v4}, Les/vb;->a(Landroid/content/Context;)Les/vb;

    move-result-object v4

    iget-object v2, v2, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;

    iget-object v2, v2, Landroid/content/pm/ActivityInfo;->name:Ljava/lang/String;

    iget v5, p0, Les/wb;->b:I

    invoke-virtual {v4, v2, v5}, Les/vb;->c(Ljava/lang/String;I)J

    move-result-wide v4

    iput-wide v4, v3, Les/zb;->g:J

    .line 16
    iget-object v2, p0, Les/wb;->a:Landroid/content/Context;

    iget-object v4, v3, Les/zb;->a:Ljava/lang/String;

    iget-object v5, v3, Les/zb;->b:Ljava/lang/String;

    invoke-static {v2, v4, v5}, Les/yb;->d(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)I

    move-result v2

    iput v2, v3, Les/zb;->f:I

    .line 17
    iget-object v2, p0, Les/wb;->e:Ljava/util/List;

    invoke-interface {v2, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 18
    :cond_0
    iget-object v0, p0, Les/wb;->e:Ljava/util/List;

    invoke-static {v0}, Ljava/util/Collections;->sort(Ljava/util/List;)V

    .line 19
    invoke-direct {p0}, Les/wb;->c()V

    return-void
.end method

.method private j()V
    .locals 9

    .line 1
    iget-object v0, p0, Les/wb;->a:Landroid/content/Context;

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    sget v1, Les/y4;->durec_share_layout:I

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    .line 2
    invoke-direct {p0, v0}, Les/wb;->a(Landroid/view/View;)V

    .line 3
    new-instance v4, Lcom/esfile/screen/recorder/ui/a$e;

    iget-object v1, p0, Les/wb;->a:Landroid/content/Context;

    invoke-direct {v4, v1}, Lcom/esfile/screen/recorder/ui/a$e;-><init>(Landroid/content/Context;)V

    iget-object v1, p0, Les/wb;->a:Landroid/content/Context;

    .line 4
    invoke-static {v1}, Lcom/esfile/screen/recorder/utils/g;->i(Landroid/content/Context;)I

    move-result v1

    invoke-virtual {v4, v1}, Lcom/esfile/screen/recorder/ui/a$e;->e(I)Lcom/esfile/screen/recorder/ui/a$e;

    const/16 v1, 0x50

    .line 5
    invoke-virtual {v4, v1}, Lcom/esfile/screen/recorder/ui/a$e;->b(I)Lcom/esfile/screen/recorder/ui/a$e;

    sget v1, Les/a5;->durec_bottom_dialog_anim:I

    .line 6
    invoke-virtual {v4, v1}, Lcom/esfile/screen/recorder/ui/a$e;->a(I)Lcom/esfile/screen/recorder/ui/a$e;

    .line 7
    invoke-virtual {v4, v2}, Lcom/esfile/screen/recorder/ui/a$e;->a(Ljava/lang/String;)Lcom/esfile/screen/recorder/ui/a$e;

    .line 8
    invoke-virtual {v4, v0}, Lcom/esfile/screen/recorder/ui/a$e;->a(Landroid/view/View;)Lcom/esfile/screen/recorder/ui/a$e;

    const/4 v0, 0x1

    .line 9
    invoke-virtual {v4, v0}, Lcom/esfile/screen/recorder/ui/a$e;->a(Z)Lcom/esfile/screen/recorder/ui/a$e;

    new-instance v0, Les/rb;

    invoke-direct {v0, p0}, Les/rb;-><init>(Les/wb;)V

    .line 10
    invoke-virtual {v4, v0}, Lcom/esfile/screen/recorder/ui/a$e;->a(Landroid/content/DialogInterface$OnCancelListener;)Lcom/esfile/screen/recorder/ui/a$e;

    .line 11
    iget-object v3, p0, Les/wb;->a:Landroid/content/Context;

    instance-of v0, v3, Landroid/app/Activity;

    if-eqz v0, :cond_0

    .line 12
    invoke-virtual {v4, v3}, Lcom/esfile/screen/recorder/ui/a$e;->a(Landroid/content/Context;)Lcom/esfile/screen/recorder/ui/a;

    move-result-object v0

    iput-object v0, p0, Les/wb;->l:Lcom/esfile/screen/recorder/ui/a;

    .line 13
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/ui/a;->show()V

    goto :goto_0

    :cond_0
    const/4 v5, 0x1

    const/4 v6, 0x0

    .line 14
    new-instance v7, Les/tb;

    invoke-direct {v7, p0}, Les/tb;-><init>(Les/wb;)V

    const-string v8, "\u5206\u4eab"

    invoke-static/range {v3 .. v8}, Lcom/esfile/screen/recorder/videos/edit/DialogActivity;->a(Landroid/content/Context;Lcom/esfile/screen/recorder/ui/a$e;ZZLcom/esfile/screen/recorder/videos/edit/DialogActivity$c;Ljava/lang/String;)V

    :goto_0
    return-void
.end method

.method private k()V
    .locals 3

    .line 1
    iget-object v0, p0, Les/wb;->f:Ljava/util/List;

    if-eqz v0, :cond_1

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-gtz v0, :cond_0

    goto :goto_0

    .line 2
    :cond_0
    iget-object v0, p0, Les/wb;->e:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    invoke-interface {v0, v1}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    .line 3
    iget-object v0, p0, Les/wb;->e:Ljava/util/List;

    iget-object v1, p0, Les/wb;->f:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 4
    iget-object v0, p0, Les/wb;->f:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    .line 5
    iget-object v0, p0, Les/wb;->g:Les/wb$d;

    const/4 v1, 0x7

    iget-object v2, p0, Les/wb;->e:Ljava/util/List;

    .line 6
    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    add-int/lit8 v2, v2, -0x8

    add-int/lit8 v2, v2, 0x1

    .line 7
    invoke-virtual {v0, v1, v2}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->notifyItemRangeChanged(II)V

    :cond_1
    :goto_0
    return-void
.end method


# virtual methods
.method public synthetic a()V
    .locals 1

    .line 6
    invoke-direct {p0}, Les/wb;->d()V

    .line 7
    new-instance v0, Les/qb;

    invoke-direct {v0, p0}, Les/qb;-><init>(Les/wb;)V

    invoke-static {v0}, Les/xc;->b(Ljava/lang/Runnable;)V

    return-void
.end method

.method public a(ILjava/util/ArrayList;Les/wb$c;)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(I",
            "Ljava/util/ArrayList<",
            "Ljava/lang/String;",
            ">;",
            "Les/wb$c;",
            ")V"
        }
    .end annotation

    .line 3
    iput p1, p0, Les/wb;->b:I

    .line 4
    iput-object p2, p0, Les/wb;->c:Ljava/util/List;

    .line 5
    iput-object p3, p0, Les/wb;->d:Les/wb$c;

    return-void
.end method

.method public synthetic a(Landroid/content/DialogInterface;)V
    .locals 0

    .line 8
    iget-object p1, p0, Les/wb;->d:Les/wb$c;

    if-eqz p1, :cond_0

    .line 9
    invoke-interface {p1}, Les/wb$c;->onCancel()V

    :cond_0
    return-void
.end method

.method public synthetic a(Lcom/esfile/screen/recorder/ui/a;)V
    .locals 0

    .line 10
    iput-object p1, p0, Les/wb;->l:Lcom/esfile/screen/recorder/ui/a;

    return-void
.end method

.method public synthetic a(Landroid/view/View;Landroid/view/MotionEvent;)Z
    .locals 3

    .line 20
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getAction()I

    move-result p1

    const/4 v0, 0x0

    const/4 v1, 0x1

    if-eq p1, v1, :cond_2

    const/4 v2, 0x2

    if-eq p1, v2, :cond_0

    goto :goto_0

    .line 21
    :cond_0
    iget-boolean p1, p0, Les/wb;->i:Z

    if-nez p1, :cond_1

    .line 22
    iput-boolean v1, p0, Les/wb;->i:Z

    .line 23
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getY()F

    move-result p1

    iput p1, p0, Les/wb;->h:F

    .line 24
    :cond_1
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getY()F

    move-result p1

    .line 25
    iget p2, p0, Les/wb;->h:F

    sub-float/2addr p2, p1

    const/high16 p1, 0x41200000    # 10.0f

    cmpl-float p1, p2, p1

    if-lez p1, :cond_3

    iget-object p1, p0, Les/wb;->f:Ljava/util/List;

    if-eqz p1, :cond_3

    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result p1

    if-lez p1, :cond_3

    .line 26
    invoke-direct {p0}, Les/wb;->k()V

    goto :goto_0

    .line 27
    :cond_2
    iput-boolean v0, p0, Les/wb;->i:Z

    const/4 p1, 0x0

    .line 28
    iput p1, p0, Les/wb;->h:F

    :cond_3
    :goto_0
    return v0
.end method

.method public b()V
    .locals 1

    .line 3
    iget-object v0, p0, Les/wb;->c:Ljava/util/List;

    if-eqz v0, :cond_1

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-gtz v0, :cond_0

    goto :goto_0

    .line 4
    :cond_0
    new-instance v0, Les/sb;

    invoke-direct {v0, p0}, Les/sb;-><init>(Les/wb;)V

    invoke-static {v0}, Les/xc;->a(Ljava/lang/Runnable;)V

    :cond_1
    :goto_0
    return-void
.end method
